package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.util.StringUtils;

import java.util.Date;

@Setter
@Getter
public class StudentLossItemQueryObj extends QueryObject {

    private String keyword;     //学员姓名/电话

    //流失时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    private Long clazzId = -1L;     //班级

    public String getKeyword(){
        return StringUtils.isEmpty(this.keyword)?null : this.keyword;
    }
}
